<div class="slide-dialog-header">
	<h2>{{title}}</h2>
	<div class="slide-dialog-toolbar">
		<ul>
			<li><span class="ui-btn slide-dialog-close" ng-click="close(false)"><i class="fa fa-remove"></i></span></li>
		</ul>
	</div>
</div>
<div class="slide-dialog-body x-slide-dialog-body">
	<div class="x-data-panel-fixed">
		<form name="form" novalidate="novalidate" ng-submit="submit(form.$valid);">
			<div class="x-data-panel-body">
				<uib-tabset active="active">
					<uib-tab index="0" heading="角色信息">
						<div class="data-form">
							<dl>
								<dt><span class="x-star">*</span>角色名称：</dt>
								<dd>
									<input type="text" name="name" maxlength="30" ng-model="data.name" class="x-ipt" placeholder="请输入角色名称" remote="{name: 'org_role_valid', params: {id: data.id}}" minlength="2" required />
									<div class="x-error" ng-if="interacted(form.name)" ng-messages="form.name.$error">
									    <span ng-message="minlength">角色名不能少于两个字符</span>
		                                <span ng-message="required">角色名称不能为空</span>
		                                <span ng-message="remote">角色名称已存在</span>
		                            </div>
								</dd>
							</dl>
							<dl>
								<dt>备注：</dt>
								<dd><textarea class="x-ipt" maxlength="200" ng-model="data.description" rows="8" placeholder="请输入描述信息"></textarea></dd>
							</dl>
						</div>
					</uib-tab>
					<uib-tab index="1" heading="功能点">
						<div kendo-tree-view="$parent.$parent.treeLib" k-options="treeLibOptions">
			                <span class="k-node" k-template>
			                    <i class="fa fa-{{dataItem.className || 'folder-open'}}"></i> {{dataItem.text}}
			                </span>
			            </div>
					</uib-tab>
					<!--<uib-tab index="2" heading="资源目录">
						<div kendo-tree-view="$parent.$parent.treeDir" k-options="treeDirOptions">
			                <span class="k-node" k-template>
			                    <i class="fa fa-{{dataItem.className || 'folder-open'}}"></i> {{dataItem.text}}
			                </span>
			            </div>
					</uib-tab>-->
				</uib-tabset>
			</div>
			<div class="x-data-panel-footer">
				<button class="dialog-button cancel-button" type="button" ng-click="close(false)">取消</button><button class="dialog-button" type="submit" ng-disabled="formDisabled">提交</button>
			</div>
		</form>
	</div>
</div>